Optimal. Leaf size=207 \[ -\frac {16 a b \cos (c+d x) \sqrt {a+b \sin (c+d x)}}{15 d}-\frac {2 b \cos (c+d x) (a+b \sin (c+d x))^{3/2}}{5 d}+\frac {2 \left (23 a^2+9 b^2\right ) E\left (\frac {1}{2} \left (c-\frac {\pi }{2}+d x\right )|\frac {2 b}{a+b}\right ) \sqrt {a+b \sin (c+d x)}}{15 d \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}-\frac {16 a \left (a^2-b^2\right ) F\left (\frac {1}{2} \left (c-\frac {\pi }{2}+d x\right )|\frac {2 b}{a+b}\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}{15 d \sqrt {a+b \sin (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.18, antiderivative size = 207, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 7, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.500, Rules used = {2735, 2832,
2831, 2742, 2740, 2734, 2732} \begin {gather*} -\frac {16 a \left (a^2-b^2\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}} F\left (\frac {1}{2} \left (c+d x-\frac {\pi }{2}\right )|\frac {2 b}{a+b}\right )}{15 d \sqrt {a+b \sin (c+d x)}}+\frac {2 \left (23 a^2+9 b^2\right ) \sqrt {a+b \sin (c+d x)} E\left (\frac {1}{2} \left (c+d x-\frac {\pi }{2}\right )|\frac {2 b}{a+b}\right )}{15 d \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}-\frac {2 b \cos (c+d x) (a+b \sin (c+d x))^{3/2}}{5 d}-\frac {16 a b \cos (c+d x) \sqrt {a+b \sin (c+d x)}}{15 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2732
Rule 2734
Rule 2735
Rule 2740
Rule 2742
Rule 2831
Rule 2832
Rubi steps
\begin {align*} \int (a+b \sin (c+d x))^{5/2} \, dx &=-\frac {2 b \cos (c+d x) (a+b \sin (c+d x))^{3/2}}{5 d}+\frac {2}{5} \int \sqrt {a+b \sin (c+d x)} \left (\frac {1}{2} \left (5 a^2+3 b^2\right )+4 a b \sin (c+d x)\right ) \, dx\\ &=-\frac {16 a b \cos (c+d x) \sqrt {a+b \sin (c+d x)}}{15 d}-\frac {2 b \cos (c+d x) (a+b \sin (c+d x))^{3/2}}{5 d}+\frac {4}{15} \int \frac {\frac {1}{4} a \left (15 a^2+17 b^2\right )+\frac {1}{4} b \left (23 a^2+9 b^2\right ) \sin (c+d x)}{\sqrt {a+b \sin (c+d x)}} \, dx\\ &=-\frac {16 a b \cos (c+d x) \sqrt {a+b \sin (c+d x)}}{15 d}-\frac {2 b \cos (c+d x) (a+b \sin (c+d x))^{3/2}}{5 d}-\frac {1}{15} \left (8 a \left (a^2-b^2\right )\right ) \int \frac {1}{\sqrt {a+b \sin (c+d x)}} \, dx+\frac {1}{15} \left (23 a^2+9 b^2\right ) \int \sqrt {a+b \sin (c+d x)} \, dx\\ &=-\frac {16 a b \cos (c+d x) \sqrt {a+b \sin (c+d x)}}{15 d}-\frac {2 b \cos (c+d x) (a+b \sin (c+d x))^{3/2}}{5 d}+\frac {\left (\left (23 a^2+9 b^2\right ) \sqrt {a+b \sin (c+d x)}\right ) \int \sqrt {\frac {a}{a+b}+\frac {b \sin (c+d x)}{a+b}} \, dx}{15 \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}-\frac {\left (8 a \left (a^2-b^2\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}}\right ) \int \frac {1}{\sqrt {\frac {a}{a+b}+\frac {b \sin (c+d x)}{a+b}}} \, dx}{15 \sqrt {a+b \sin (c+d x)}}\\ &=-\frac {16 a b \cos (c+d x) \sqrt {a+b \sin (c+d x)}}{15 d}-\frac {2 b \cos (c+d x) (a+b \sin (c+d x))^{3/2}}{5 d}+\frac {2 \left (23 a^2+9 b^2\right ) E\left (\frac {1}{2} \left (c-\frac {\pi }{2}+d x\right )|\frac {2 b}{a+b}\right ) \sqrt {a+b \sin (c+d x)}}{15 d \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}-\frac {16 a \left (a^2-b^2\right ) F\left (\frac {1}{2} \left (c-\frac {\pi }{2}+d x\right )|\frac {2 b}{a+b}\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}{15 d \sqrt {a+b \sin (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.65, size = 185, normalized size = 0.89 \begin {gather*} \frac {-2 \left (23 a^3+23 a^2 b+9 a b^2+9 b^3\right ) E\left (\frac {1}{4} (-2 c+\pi -2 d x)|\frac {2 b}{a+b}\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}}+16 a \left (a^2-b^2\right ) F\left (\frac {1}{4} (-2 c+\pi -2 d x)|\frac {2 b}{a+b}\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}}+b \cos (c+d x) \left (-22 a^2-3 b^2+3 b^2 \cos (2 (c+d x))-28 a b \sin (c+d x)\right )}{15 d \sqrt {a+b \sin (c+d x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(889\) vs.
\(2(253)=506\).
time = 0.52, size = 890, normalized size = 4.30
method | result | size |
default | \(\frac {2 a^{4} \sqrt {\frac {a +b \sin \left (d x +c \right )}{a -b}}\, \sqrt {-\frac {\left (\sin \left (d x +c \right )-1\right ) b}{a +b}}\, \sqrt {-\frac {\left (1+\sin \left (d x +c \right )\right ) b}{a -b}}\, \EllipticF \left (\sqrt {\frac {a +b \sin \left (d x +c \right )}{a -b}}, \sqrt {\frac {a -b}{a +b}}\right )+\frac {16 \sqrt {\frac {a +b \sin \left (d x +c \right )}{a -b}}\, \sqrt {-\frac {\left (\sin \left (d x +c \right )-1\right ) b}{a +b}}\, \sqrt {-\frac {\left (1+\sin \left (d x +c \right )\right ) b}{a -b}}\, \EllipticF \left (\sqrt {\frac {a +b \sin \left (d x +c \right )}{a -b}}, \sqrt {\frac {a -b}{a +b}}\right ) a^{3} b}{15}-\frac {4 a^{2} \sqrt {\frac {a +b \sin \left (d x +c \right )}{a -b}}\, \sqrt {-\frac {\left (\sin \left (d x +c \right )-1\right ) b}{a +b}}\, \sqrt {-\frac {\left (1+\sin \left (d x +c \right )\right ) b}{a -b}}\, \EllipticF \left (\sqrt {\frac {a +b \sin \left (d x +c \right )}{a -b}}, \sqrt {\frac {a -b}{a +b}}\right ) b^{2}}{5}-\frac {16 a \sqrt {\frac {a +b \sin \left (d x +c \right )}{a -b}}\, \sqrt {-\frac {\left (\sin \left (d x +c \right )-1\right ) b}{a +b}}\, \sqrt {-\frac {\left (1+\sin \left (d x +c \right )\right ) b}{a -b}}\, \EllipticF \left (\sqrt {\frac {a +b \sin \left (d x +c \right )}{a -b}}, \sqrt {\frac {a -b}{a +b}}\right ) b^{3}}{15}-\frac {6 \sqrt {\frac {a +b \sin \left (d x +c \right )}{a -b}}\, \sqrt {-\frac {\left (\sin \left (d x +c \right )-1\right ) b}{a +b}}\, \sqrt {-\frac {\left (1+\sin \left (d x +c \right )\right ) b}{a -b}}\, \EllipticF \left (\sqrt {\frac {a +b \sin \left (d x +c \right )}{a -b}}, \sqrt {\frac {a -b}{a +b}}\right ) b^{4}}{5}-\frac {46 \sqrt {\frac {a +b \sin \left (d x +c \right )}{a -b}}\, \sqrt {-\frac {\left (\sin \left (d x +c \right )-1\right ) b}{a +b}}\, \sqrt {-\frac {\left (1+\sin \left (d x +c \right )\right ) b}{a -b}}\, \EllipticE \left (\sqrt {\frac {a +b \sin \left (d x +c \right )}{a -b}}, \sqrt {\frac {a -b}{a +b}}\right ) a^{4}}{15}+\frac {28 \sqrt {\frac {a +b \sin \left (d x +c \right )}{a -b}}\, \sqrt {-\frac {\left (\sin \left (d x +c \right )-1\right ) b}{a +b}}\, \sqrt {-\frac {\left (1+\sin \left (d x +c \right )\right ) b}{a -b}}\, \EllipticE \left (\sqrt {\frac {a +b \sin \left (d x +c \right )}{a -b}}, \sqrt {\frac {a -b}{a +b}}\right ) a^{2} b^{2}}{15}+\frac {6 \sqrt {\frac {a +b \sin \left (d x +c \right )}{a -b}}\, \sqrt {-\frac {\left (\sin \left (d x +c \right )-1\right ) b}{a +b}}\, \sqrt {-\frac {\left (1+\sin \left (d x +c \right )\right ) b}{a -b}}\, \EllipticE \left (\sqrt {\frac {a +b \sin \left (d x +c \right )}{a -b}}, \sqrt {\frac {a -b}{a +b}}\right ) b^{4}}{5}+\frac {2 b^{4} \left (\sin ^{4}\left (d x +c \right )\right )}{5}+\frac {28 a \,b^{3} \left (\sin ^{3}\left (d x +c \right )\right )}{15}+\frac {22 a^{2} b^{2} \left (\sin ^{2}\left (d x +c \right )\right )}{15}-\frac {2 b^{4} \left (\sin ^{2}\left (d x +c \right )\right )}{5}-\frac {28 a \,b^{3} \sin \left (d x +c \right )}{15}-\frac {22 a^{2} b^{2}}{15}}{b \cos \left (d x +c \right ) \sqrt {a +b \sin \left (d x +c \right )}\, d}\) | \(890\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 0.14, size = 447, normalized size = 2.16 \begin {gather*} -\frac {\sqrt {2} {\left (a^{3} - 33 \, a b^{2}\right )} \sqrt {i \, b} {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (4 \, a^{2} - 3 \, b^{2}\right )}}{3 \, b^{2}}, -\frac {8 \, {\left (8 i \, a^{3} - 9 i \, a b^{2}\right )}}{27 \, b^{3}}, \frac {3 \, b \cos \left (d x + c\right ) - 3 i \, b \sin \left (d x + c\right ) - 2 i \, a}{3 \, b}\right ) + \sqrt {2} {\left (a^{3} - 33 \, a b^{2}\right )} \sqrt {-i \, b} {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (4 \, a^{2} - 3 \, b^{2}\right )}}{3 \, b^{2}}, -\frac {8 \, {\left (-8 i \, a^{3} + 9 i \, a b^{2}\right )}}{27 \, b^{3}}, \frac {3 \, b \cos \left (d x + c\right ) + 3 i \, b \sin \left (d x + c\right ) + 2 i \, a}{3 \, b}\right ) + 3 \, \sqrt {2} {\left (23 i \, a^{2} b + 9 i \, b^{3}\right )} \sqrt {i \, b} {\rm weierstrassZeta}\left (-\frac {4 \, {\left (4 \, a^{2} - 3 \, b^{2}\right )}}{3 \, b^{2}}, -\frac {8 \, {\left (8 i \, a^{3} - 9 i \, a b^{2}\right )}}{27 \, b^{3}}, {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (4 \, a^{2} - 3 \, b^{2}\right )}}{3 \, b^{2}}, -\frac {8 \, {\left (8 i \, a^{3} - 9 i \, a b^{2}\right )}}{27 \, b^{3}}, \frac {3 \, b \cos \left (d x + c\right ) - 3 i \, b \sin \left (d x + c\right ) - 2 i \, a}{3 \, b}\right )\right ) + 3 \, \sqrt {2} {\left (-23 i \, a^{2} b - 9 i \, b^{3}\right )} \sqrt {-i \, b} {\rm weierstrassZeta}\left (-\frac {4 \, {\left (4 \, a^{2} - 3 \, b^{2}\right )}}{3 \, b^{2}}, -\frac {8 \, {\left (-8 i \, a^{3} + 9 i \, a b^{2}\right )}}{27 \, b^{3}}, {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (4 \, a^{2} - 3 \, b^{2}\right )}}{3 \, b^{2}}, -\frac {8 \, {\left (-8 i \, a^{3} + 9 i \, a b^{2}\right )}}{27 \, b^{3}}, \frac {3 \, b \cos \left (d x + c\right ) + 3 i \, b \sin \left (d x + c\right ) + 2 i \, a}{3 \, b}\right )\right ) + 6 \, {\left (3 \, b^{3} \cos \left (d x + c\right ) \sin \left (d x + c\right ) + 11 \, a b^{2} \cos \left (d x + c\right )\right )} \sqrt {b \sin \left (d x + c\right ) + a}}{45 \, b d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (a + b \sin {\left (c + d x \right )}\right )^{\frac {5}{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int {\left (a+b\,\sin \left (c+d\,x\right )\right )}^{5/2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________